﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace SmartConference.Infrastructure.Migrations
{
    public partial class 中间表更新 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CreateId",
                table: "UserRole");

            migrationBuilder.DropColumn(
                name: "CreateName",
                table: "UserRole");

            migrationBuilder.DropColumn(
                name: "CreateTime",
                table: "UserRole");

            migrationBuilder.DropColumn(
                name: "DeleteId",
                table: "UserRole");

            migrationBuilder.DropColumn(
                name: "DeleteName",
                table: "UserRole");

            migrationBuilder.DropColumn(
                name: "DeleteTime",
                table: "UserRole");

            migrationBuilder.DropColumn(
                name: "IsDelete",
                table: "UserRole");

            migrationBuilder.DropColumn(
                name: "UpdateId",
                table: "UserRole");

            migrationBuilder.DropColumn(
                name: "UpdateName",
                table: "UserRole");

            migrationBuilder.DropColumn(
                name: "UpdateTime",
                table: "UserRole");

            migrationBuilder.DropColumn(
                name: "CreateId",
                table: "RolePermission");

            migrationBuilder.DropColumn(
                name: "CreateName",
                table: "RolePermission");

            migrationBuilder.DropColumn(
                name: "CreateTime",
                table: "RolePermission");

            migrationBuilder.DropColumn(
                name: "DeleteId",
                table: "RolePermission");

            migrationBuilder.DropColumn(
                name: "DeleteName",
                table: "RolePermission");

            migrationBuilder.DropColumn(
                name: "DeleteTime",
                table: "RolePermission");

            migrationBuilder.DropColumn(
                name: "IsDelete",
                table: "RolePermission");

            migrationBuilder.DropColumn(
                name: "UpdateId",
                table: "RolePermission");

            migrationBuilder.DropColumn(
                name: "UpdateName",
                table: "RolePermission");

            migrationBuilder.DropColumn(
                name: "UpdateTime",
                table: "RolePermission");

            migrationBuilder.UpdateData(
                table: "UserInfo",
                keyColumn: "IDNumber",
                keyValue: 1L,
                column: "Birthday",
                value: new DateTime(2025, 6, 9, 9, 48, 17, 840, DateTimeKind.Local).AddTicks(2028));
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "CreateId",
                table: "UserRole",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "CreateName",
                table: "UserRole",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreateTime",
                table: "UserRole",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "DeleteId",
                table: "UserRole",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DeleteName",
                table: "UserRole",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "DeleteTime",
                table: "UserRole",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsDelete",
                table: "UserRole",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "UpdateId",
                table: "UserRole",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "UpdateName",
                table: "UserRole",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdateTime",
                table: "UserRole",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "CreateId",
                table: "RolePermission",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "CreateName",
                table: "RolePermission",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreateTime",
                table: "RolePermission",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "DeleteId",
                table: "RolePermission",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "DeleteName",
                table: "RolePermission",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "DeleteTime",
                table: "RolePermission",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<bool>(
                name: "IsDelete",
                table: "RolePermission",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<int>(
                name: "UpdateId",
                table: "RolePermission",
                type: "int",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "UpdateName",
                table: "RolePermission",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdateTime",
                table: "RolePermission",
                type: "datetime2",
                nullable: true);

            migrationBuilder.UpdateData(
                table: "UserInfo",
                keyColumn: "IDNumber",
                keyValue: 1L,
                column: "Birthday",
                value: new DateTime(2025, 6, 6, 21, 1, 41, 624, DateTimeKind.Local).AddTicks(5743));
        }
    }
}
